package net.fltx.assets.entity;


import java.util.List;

public class FileVO {
    private String name;
    private String absolutePath;
    private boolean isDirectory;
    private String parentPath;
    private List<FileVO> children;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAbsolutePath() {
        return absolutePath;
    }

    public void setAbsolutePath(String absolutePath) {
        this.absolutePath = absolutePath;
    }

    public boolean getIsDirectory() {
        return isDirectory;
    }

    public void setIsDirectory(boolean directory) {
        isDirectory = directory;
    }

    public String getParentPath() {
        return parentPath;
    }

    public void setParentPath(String parentPath) {
        this.parentPath = parentPath;
    }

    public List<FileVO> getChildren() {
        return children;
    }

    public void setChildren(List<FileVO> children) {
        this.children = children;
    }

    public FileVO(){}
//    public FileVO(File file){
//        this.name=file.getName();
//        this.isDirectory=file.isDirectory();
//        this.path=file.getAbsolutePath();
//        if(this.isDirectory){
//
//        }
//    }

    @Override
    public String toString() {
        return "FileVO{" +
                "name='" + name + '\'' +
                ", path='" + absolutePath + '\'' +
                ", isDirectory=" + isDirectory +
                ", parentPath=" + parentPath +
                //", children=" + children +
                '}';
    }
}
